<template>
  <nav-bar></nav-bar>
  <div class="container">
    <div class="header">
      <router-link to="/users/trafficMember">交管用户管理</router-link>
      <router-link to="/users/normalMember">普通用户管理</router-link>
    </div>
    <!-- 二级路由:显示交通用户管理和普通用户管理 -->
    <router-view></router-view>
  </div>
</template>
<script setup>
//导入Navbar组件
import NavBar from "@/components/NavBar.vue"
</script>
<style lang="stylus" scoped>
.container
  width 80vw
  margin 2vh auto
  border 1px solid #eee
  border-radius 10px
  padding 10px 20px
  padding-bottom 50px
  min-height 80vh
  box-sizing border-box
  position relative
  .header
    height 5vh
    line-height 5vh
    display flex
    justify-content space-around
    margin-bottom 6vh
    a
      padding-bottom 5vh
      color #000
    .router-link-active
      border-bottom 2px solid #0077c0
      color #0077c0
</style>
